package com.xuecheng.content.controller;

import com.xuecheng.api.content.FileManagerApi;
import com.xuecheng.api.content.model.qn.UploadTokenResult;
import com.xuecheng.content.service.FileManagerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class FileManagerController implements FileManagerApi {

    @Autowired
    private FileManagerService fileManagerService;

    @GetMapping("common/qnUploadToken")
    public UploadTokenResult getUploadToken() {

        return  fileManagerService.getUploadToken();
    }
}
